package biz;

import java.util.List;
import java.util.Map;

import dao.BaseDao;

public class DataBiz {
	public static List<Map<String, String>> getData(){
	String sql="select *from tbl1 limit 10";
	List<Map<String, String>> list=new BaseDao().querySql(sql);
	return list;
	}
	
	
	public static Object[][] getDataTable(){
		String sql="select *from tbl1 limit 3,3";
		return new BaseDao().queryTable(sql);
	}
	
	public static void main(String[] args) {
		Object[][] objects=getDataTable();
		for (Object[] objects2 : objects) {
			for (Object object : objects2) {
				System.out.println(object);
			}
		}
	}
}
